package cn.achao.csr.api.model.resp;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @Author: achao
 **/
@Data
@NoArgsConstructor
public class AliUserInfoResp {

    private String sign;
    private AlipayUserInfoShareResponseDTO alipay_user_info_share_response;

    @Data
    @NoArgsConstructor
    public static class AlipayUserInfoShareResponseDTO {
        private String code;
        private String msg;
        private String age;
        private String avatar;
        private String cert_no;
        private String cert_type;
        private String city;
        private String country_code;
        private List<DeliverAddressesDTO> deliver_addresses;
        private String display_name;
        private String email;
        private String gender;
        private String inst_or_corp;
        private String is_adult;
        private String is_blocked;
        private String is_certified;
        private String is_student_certified;
        private String member_grade;
        private String mobile;
        private String nick_name;
        private String person_birthday;
        private String person_birthday_without_year;
        private String province;
        private String user_id;
        private String user_name;
        private String user_status;
        private String user_type;
        private String open_id;

        @Data
        @NoArgsConstructor
        public static class DeliverAddressesDTO {
            private String address_code;
            private String default_deliver_address;
            private String deliver_city;
            private String deliver_province;
        }
    }
}
